package com.ruyuan.rapid.discovery.api;

/**
 * 监听服务接口
 * @author mac
 */
public interface Notify {

    /**
     * 添加
     * @param key
     * @param value
     * @throws Exception
     */
    void put(String key, String value) throws Exception;

    /**
     * 删除
     * @param key
     * @throws Exception
     */
    void delete(String key) throws Exception;
}
